Macro FC Convert Lines/pl

Other languages:

Macro FC Convert Lines

Description
This macro convert the object line, wire in line Dash, DashDot or DashDotDot with the dimensions given.

Macro version: 00.07b
Last modified: 2020-11-09
FreeCAD version: All
Download: ToolBar Icon
Author: mario52
Author
mario52
Download
ToolBar Icon
Links
Macro Version
00.07b
Date last modified
2020-11-09
FreeCAD Version(s)
All
Default shortcut
None
See also
None

Description

This macro convert the object line, wire in line Dash, DashDot, DashDotDot, ZigZag, Hand with the dimensions given.

Temporary code for external macro link. Do not use this code. This code is used exclusively by Addon Manager. Link for optional manual installation: Macro


# This code is copied instead of the original macro code
# to guide the user to the online download page.
# Use it if the code of the macro is larger than 64 KB and cannot be included in the wiki
# or if the RAW code URL is somewhere else in the wiki.

from PySide import QtGui, QtCore

diag = QtGui.QMessageBox(QtGui.QMessageBox.Information,
    "Information",
    "This macro must be downloaded from this link\n"
    "\n"
    "https://gist.githubusercontent.com/mario52a/3d719574089a5f9044ec/raw/812769b6b296a1da2e9c8cd8153ad7266fe80f8d/Macro_FCConvertLines.FCMacro" + "\n"
    "\n"
    "Quit this window to access the download page")

diag.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
diag.setWindowModality(QtCore.Qt.ApplicationModal)
diag.exec_()

import webbrowser 
webbrowser.open("https://gist.githubusercontent.com/mario52a/3d719574089a5f9044ec/raw/812769b6b296a1da2e9c8cd8153ad7266fe80f8d/Macro_FCConvertLines.FCMacro")
<class="rawcodeurl"><a href="https://gist.githubusercontent.com/mario52a/3d719574089a5f9044ec/raw/812769b6b296a1da2e9c8cd8153ad7266fe80f8d/Macro_FCConvertLines.FCMacro">raw code</a>


ConvertLines Dash, Dash dot, Dash dot dot

Usage

Copy the macro in your macros folder and launch FCConvertLines Gui

FCConvertLines Gui
FCConvertLines Gui

First section :

Cut line (Checked by default)

FCConvertLines
FCConvertLines

Color

Second section :

Type line : Dash

FCConvertLines
FCConvertLines

Third section :

Type line : DashDot

FCConvertLines
FCConvertLines

Fourth section :

Type line : DashDotDot

FCConvertLines
FCConvertLines

Fifth section :

Type line : ZigZag

FCConvertLines
FCConvertLines

Sixth section :

Type line : Hand

FCConvertLines
FCConvertLines

Seventh section :

Options line :

FCConvertLines
FCConvertLines

This options are available for all menu

Eighth section :

Option Plane

This option are available only for "ZigZag" and "Hand"

FCConvertLines
FCConvertLines

Ninth section :

Button

FCConvertLines
FCConvertLines

The files to copy in your directory with the macro (10 files images)

The icon for the toolBar

Macro_FCConvertLines
Macro_FCConvertLines

Title

ConvertLines_Title
ConvertLines_Title

Line Dash :

ConvertLines_Dash
ConvertLines_Dash

Line DashDot :

ConvertLines Dash dot
ConvertLines Dash dot

Line DashDotDot :

ConvertLines Dash dot dot
ConvertLines Dash dot dot

Line Zigzag :

ConvertLines_Zigzag
ConvertLines_Zigzag

Line Hand :

ConvertLines_Hand
ConvertLines_Hand

View :

ConvrtLines_View-front ConvrtLines_View-right ConvrtLines_View-right

Script

Copy the macro Macro_FCConvertLines.FCMacro in your macros folder.

The script on Gist Macro_FCConvertLines.FCMacro

ToolBar icon


Macro_FCConvertLines.FCMacro

Examples

Example dot, dash dot, dash dot, dash dot dot

Example hand, zigzag

Example hand

All lines created the configuration specifications set in this Option lines

Example hand can make beautiful sine wave or totally anarchic

Example convert ShapeString to sketch (the curves hare not authorized for convert Shape to Sketch)

Wersja

ver 00.07b 09/11/2020 correct bug # (ajoute recompute() pour corriger)# Cannot compute Inventor representation for the shape of Shape. And Line by Label

ver 00.07 13/05/2017 correct bug after create "Alternate ...." the dimension of lines stay with the dimension alternative and not restitution the desired dimensions

ver 00.06 20/02/2017 correction of precision cut (replace "numberOfPoints = longueur" to "numberOfPoints = (longueur + 1)")

ver 00.05 11/01/2017 replace de search method macro path

ver 00.04 05/09/2016 setPointSize(8.0)

v 00.02 18/02/2016

v 00.01 19/01/2016

v 00.00 19/01/2016